﻿// See https://aka.ms/new-console-template for more information
class b3
{
    public static void Main(string[] args)
    {
        int[] arr = new int[101];
        for (int i = 0; i < 101; i++)
        {
            arr[i] = 1;
        }
            
        for(int i = 2; i <101; i++)
        {
            for(int j = 2; j < 101; j++)
            {
                if(j%i == 0&&j!=i)
                {
                    arr[j] = 0;
                }
            }
        }
        Console.WriteLine("2-100内的素数：");
        for(int i = 2; i < 101; i++)
        {
            if(arr[i] != 0)
            {
                Console.WriteLine(i+" ");
            }
            
        }
    }
}
